package com.pateo.springcloudgoods.web.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@ApiModel("修改商品对象")
@Data
public class GoodsResponse {

    @ApiModelProperty("商品id(新增-置空，更新-必填)")
    private Long id;

    @NotEmpty
    @ApiModelProperty("商品名称(必填)")
    private String name;

    @NotEmpty
    @ApiModelProperty("商品类型(必填)")
    private String type;

    @ApiModelProperty("商品颜色")
    private String color;

    @ApiModelProperty("商品品牌")
    private String brand;

}
